{*include file="template/admin_head.htm"*}

<table id="containtable" cellspacing="0" cellpadding="0" class="{*$cf_controller*}">
    <tr>
        <td width="1979" valign="top" bgcolor="#FFFFFF">
            <div class="wrapper pr_8">
			
			<script type="text/javascript">
			$(function(){
				$("#skey").autocomplete("/admin/ajax-act_searchuser.htm", {
						minChars: 1,					//最少输入字条
						max: 12,
						autoFill: false,				//是否选多个,用","分开
						mustMatch: true,				//是否全匹配, 如数据中没有此数据,将无法输入
						matchContains: true,			//是否全文搜索,否则只是前面作为标准
						scrollHeight: 220,
						width:450,
						multiple:false,
						dataType:'html',
						formatItem: function(row, i, max) {					//显示格式						
							return "<span style='width:120px'>"+row[0]+"</span><span style='width:70px'>ID:"+row[1]+"</span><span style='width:80px'>"+row[2]+"</span><span style='width:80px'>"+row[3]+"</span>";
						},
						formatMatch: function(row, i, max) {				//以什么数据作为搜索关键词,可包括中文,
						   return row[1];
				
						},
						formatResult: function(row) {					//返回结果		
							return row[0];
						}
					});
					
			})
			</script>
			<div class="pannel">
			<div class="pl"></div>
			<div class="pr"></div>
			<div class="pc1">
			    <form action="" method="get" id="search_form" name="search_form">
				<input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
				<input name="self" id="dpt" type="hidden" value="{*$self*}" />
				<div class="pt">
				    店主账号:
				    <input type="text" size="20" id="skey" name="skey" class="tet" value="{*$skey*}" />	
					&nbsp;商品标题:
				   <input type="text" size="20" id="skey4" name="skey4" class="tet" value="{*$skey4*}" />	
					&nbsp;返利时间：
				<input name="skey2" class="Wdate" type="text" id="act_start" value="{*$skey2*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                到<input name="skey3" class="Wdate" type="text" id="act_end" value="{*$skey3*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
                 &nbsp;			   
			      <input type="image" src="public/images/admin/icon_search_btn.gif" />
				</div>
			    </form>
			</div>
		    </div>
			
			<div class="content_panel_title">
			<div class="contentpanelleft"></div>
			<div class="contentpanelcenter">
			    <span class="contentpanelcenter_font">返利提成管理</span>
			    
			</div>
			<div class="contentpanelrihgt"></div>
		    </div>
			
			<div class="content_table_center_style">
			<div class="p8">
			    <div class="bq clearfix">
				<b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}" class="{*if $self==''*}active{*/if*}">所 有 </a></b>
				{*foreach $cf_info_var_common['rebate_status'] as $key=>$item*}
				{*if $key==$self && $self!=''*}
				{*assign var=class value='active'*}
				{*else*}
				{*assign var=class value=''*}
				{*/if*}
				<b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&self={*$key*}" class="{*$class*}" >{*$item*}</a></b>
				{*/foreach*}
			    </div>
			    <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
				<input name="act" type="hidden" value="all" />
				<input name="dpt" type="hidden" value="{*$cf_dpt*}" />
				<table width="100%" class="tbl tbl_nbr">
				    <thead>
					<tr class="thd">
					    <td width="6%" height="21" align="center" class="thr">ID</td>
					    <td width="14%" align="center" class="thr">店主账号</td>
					    <td width="18%" align="center" class="thr">订单号</td>
					    <td width="16%" align="center" class="thr">商品</td>
					    <td width="10%" align="center" class="thr">返利金额</td>
					    <td width="11%" align="center" class="thr">状态</td>
					    <td width="12%" align="center" class="thr">已返利时间</td>
					    <td align="center" class="thr">操作</td>
					</tr>
				    </thead>
				    <tbody>
					{*foreach $data_ary as $item*}
					<tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
					    <td align="center">{*$item['order_id']*}</td>
					    <td align="left"><a href="javascript:void(0)" title="查看詳情" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_user.htm?id={*$item['order_uid']*}','查看用户详情',700,500)})" class="edit" >{*$item['order_user']*}</a></td>
					    <td align="left"><a href="javascript:void(0)" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_order.htm?id={*$item['order_id']*}','订单详情',700,500)})" class="edit">{*$item['order_sn']*}</a></td>
					    <td align="left"><a href="/admin/goods-act_detail_id_{*$item['order_goods_id']*}.htm?dpt={*$cf_dpt*}" title="查看詳情" class="edit" target="_blank" >{*$item['order_goods_title']*}</a></td>
					    <td align="left">{*$item['order_rebate_money']*}</td>
					    <td align="center">{*$cf_info_var_common['rebate_status'][$item['order_is_rebate']]*}</td>
					    <td align="center">{*$item['order_rebate_time']*}</td>
					    <td width="13%" align="center">
						{*if $item['order_is_rebate']=='0'*}
						<a href="javascript:void(0)" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_rebate.htm?id={*$item['order_id']*}','返利提成操作',700,500)})" class="edit">返利</a>
						{*else*}
						<a href="javascript:void(0)" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_rebate.htm?id={*$item['order_id']*}','返利提户操作',700,500)})" class="edit">查看</a>
						{*/if*}
						</td>
					    </tr>
					{*/foreach*}
					<tr class="tft">
					    <td colspan="8" style="padding:0;">
						<table width="100%" border="0">
						    <tr>
							<td width="5%" align="center" style="border:0;padding:0;"><!--<input type="button" name="checkall" id="checkall" class="myinput" value="全 选" />--></td>
							<td width="7%" align="center" style="border:0;padding:0;">
							    <!--<select name="alltype" id="alltype">
								<option selected="selected" value="">操作選擇</option>
							    </select>
							    &nbsp;<input type="submit" name="submit_all" id="submit_all" value="批量操作" class="myinput" />--></td>
							<td width="88%" align="center" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
						    </tr>
						</table>                                </td>
					</tr>
				    </tbody>
				</table>
			    </form>
			</div>
		    </div>
			
			<div class="content_main_bottom">
				<div class="content_main_bottom_left"></div>
				<div class="content_main_bottom_right"></div>
		    </div>
			
			
			</div>
		</td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}